Skip to contentSkip to conversation

New: With dpm=1 vdpau is not usable

Bug 69120 [email protected] 1 participant 30 messages Sep 8, 2013 – Jul 20, 2018

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=69120

          Priority: medium
            Bug ID: 69120
          Assignee: [email protected]
           Summary: With dpm=1 vdpau is not usable
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: [email protected]
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: 9.2
         Component: Drivers/Gallium/r600
           Product: Mesa

Hello,

with radeon.dpm=0 (or not set), vdpau output works very fine. But if I switch to radeon.dpm=1 it becomes unusable.
mplayer tells me that my computer is too slow, video stutters to a crazy extent, same in xbmc.
With dpm set to 1, I am still able to watch videos "normally" if not using vdpau.

I have a Radeon 4670, Linux 3.11, Mesa 9.2 and Radeon 1:7.2.0.

I tried to change power_dpm_state and power_dpm_force_performance_level to see if it would help.
power_dpm_state stays at performance but even if I set power_dpm_force_performance_level to high, but it always reverts to auto... This doesn't help at all...

I am not sure what else to attach.
Thank you

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #1 from Dieter Nützel <[email protected]> --- Hello John,

I see nearly the same with all 3.11-rcX and final plus 3.12-next. Only diffence with dpm=0 I get partially mosaic with bigger videos (1280x720 H.264 and 1920x1080 H.264) from time to time.

But my system is much slower than yours:

poor Duron 1800 ;-)
RV730 AGP (4650)
Mesa 9.2 and git master
3.11 and 3.12-next

power_dpm_force_performance_level didn't works for me, too.

Quoted 1 line

I am not sure what else to attach.

Maybe your dmesg.log, Xorg.0.log and your vbios.

(as root)
(use lspci to get the bus id)
cd /sys/bus/pci/devices/<pci bus id>
echo 1 > rom
cat rom > /tmp/vbios.rom
echo 0 > rom

Mine comming, here.
(With dual DVI monitor configuration I got something in dmesg) [drm:rv770_dpm_set_power_state] *ERROR* rv770_restrict_performance_levels_before_switch failed

Regards,
Dieter

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #2 from Dieter Nützel <[email protected]> --- Created attachment 85467
--> https://bugs.freedesktop.org/attachment.cgi?id=85467&action=edit
dmesg-3.11-dmp-1-two-displays.log

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #3 from Dieter Nützel <[email protected]> --- Created attachment 85468
--> https://bugs.freedesktop.org/attachment.cgi?id=85468&action=edit
Xorg.0.log

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #4 from Dieter Nützel <[email protected]> --- Created attachment 85469
--> https://bugs.freedesktop.org/attachment.cgi?id=85469&action=edit
copy of video bios

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #5 from Dieter Nützel <[email protected]> ---

# radeontool regmatch 0x0718
0x0718  0x20010002 (536936450)
# radeontool regmatch 0x071c
0x071c  0x021f2111 (35594513)
# radeontool regmatch 0x0720
0x0720  0x102774da (271021274)

01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RV730 Pro AGP [Radeon HD 4600 Series] (prog-if 00 [VGA controller])
Subsystem: PC Partner Limited Device 0028
Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 16 Memory at c0000000 (32-bit, prefetchable) [size=256M]
I/O ports at a800 [size=256]
Memory at dfdf0000 (32-bit, non-prefetchable) [size=64K] Expansion ROM at dfdc0000 [disabled] [size=128K]
Capabilities: [50] Power Management version 3
Capabilities: [58] AGP version 3.0
Kernel driver in use: radeon

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #6 from John <[email protected]> --- Hello Dieter,

thanks for the suggestions.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #7 from John <[email protected]> --- Created attachment 85476
--> https://bugs.freedesktop.org/attachment.cgi?id=85476&action=edit
John's vbios

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #8 from Alex Deucher <[email protected]> --- Please attach your dmesg output.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #9 from John <[email protected]> --- Created attachment 85496
--> https://bugs.freedesktop.org/attachment.cgi?id=85496&action=edit
John's dmesg

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #85496|application/octet-stream    |text/plain
          mime type|                            |
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #10 from Alex Deucher <[email protected]> --- Created attachment 85563
--> https://bugs.freedesktop.org/attachment.cgi?id=85563&action=edit
possible fix

The attached patch should fix the issue.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #11 from John <[email protected]> --- Hi Alex,

Thanks for the quick turn around.

Looking at the patch it seems to be for RV770 and RV780 will it still work for our older cards?

I am not home right now so I cannot test it to get the answer.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #12 from Alex Deucher <[email protected]> --- (In reply to comment #11)

Quoted 6 lines

Hi Alex,

Thanks for the quick turn around.

Looking at the patch it seems to be for RV770 and RV780 will it still work for our older cards?

Yes. It covers the entire 7xx family of cards.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #13 from Dieter Nützel <[email protected]> --- Hurray Alex,

your possible fix from Comment 10 solve it halfway or maybe fully even on my slow Duron 1800, RV730 AGP (4650), if we separate the mosaic into a new bug entry.

The SPEED is there, now.
I can play 2 H.264 VDPAU accelerated videos (854x480 and 1280x720) simultaneously with ~35% idle rest on this little system. Have a look at 2-times-mplayer-konsole.png attachment.

I've tested it with AGP and PCIE mode, both with same results.

The mosaic problem IS mouse cursor (hardware cursor?) related!
If the (big/fullscreen) video window coming up 'under' (over?) the mouse cursor position I get immediately mosaic. When a smaller video window starts from mouse cursor postion away UVD is excellent. Mosaic starts then not until mouse cursor move over the video window. With mplayer this could be faster reached if one seek into the video window.
See 2-times-mplayer-mosaic.png attachment.
Tested with AGP and PCIE mode.

Very nice!

-Dieter

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #14 from Dieter Nützel <[email protected]> --- Created attachment 85591
--> https://bugs.freedesktop.org/attachment.cgi?id=85591&action=edit
2-times-mplayer-konsole.png

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #15 from Dieter Nützel <[email protected]> --- Created attachment 85592
--> https://bugs.freedesktop.org/attachment.cgi?id=85592&action=edit
2-times-mplayer-mosaic.png

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#17 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #16 from Dieter Nützel <[email protected]> --- Created attachment 85593
--> https://bugs.freedesktop.org/attachment.cgi?id=85593&action=edit
dmesg-drm-next-3.12-AGP-dpm-1-fix-fallback-for-empty-UVD-clocks.log

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#18 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #17 from Dieter Nützel <[email protected]> --- Created attachment 85594
--> https://bugs.freedesktop.org/attachment.cgi?id=85594&action=edit
dmesg-drm-next-3.12-PCIE-dpm-1-fix-fallback-for-empty-UVD-clocks.log

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#19 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #18 from Dieter Nützel <[email protected]> --- (In reply to comment #10)

Quoted 4 lines

Created attachment 85563 [details] [review]
possible fix

The attached patch should fix the issue.

Candidate for stable?

-Dieter

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#20 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #19 from John <[email protected]> --- I confirm the patch works here as well!

Thank you.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#21 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #20 from Alex Deucher <[email protected]> --- (In reply to comment #13)

Quoted 3 lines

your possible fix from Comment 10 solve it halfway or maybe fully even on my slow Duron 1800, RV730 AGP (4650), if we separate the mosaic into a new bug entry.

That's a separate issue. Please open a different bug for that.

(In reply to comment #18)

Quoted 1 line

Candidate for stable?

Yes, the patch will go to stable.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#22 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Product|Mesa                        |DRI
            Version|9.2                         |DRI CVS
          Component|Drivers/Gallium/r600        |DRM/Radeon
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#23 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #21 from Karl Miller <[email protected]> --- Well it's still not working with my 6870.

Sometimes the Video starts fine, but most of the time it stutters with dpm enabled, and most of the time one pause is enough for the video to start stuttering again.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#24 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #22 from Karl Miller <[email protected]> --- Created attachment 87301
--> https://bugs.freedesktop.org/attachment.cgi?id=87301&action=edit
Karl's vbios

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#25 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #23 from Karl Miller <[email protected]> --- Created attachment 87302
--> https://bugs.freedesktop.org/attachment.cgi?id=87302&action=edit
Karl's dmesg

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#26 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #24 from Chris Humbert <[email protected]> --- Created attachment 93075
--> https://bugs.freedesktop.org/attachment.cgi?id=93075&action=edit
cedar-3.13.1-dmesg

radeon.dpm=1 vdpau causes Cedar [HD 5450] to GPU lockup CP stall immediately. The player hangs with a black window.
radeon.dpm=0 vdpau works very well.

01:00.0 VGA compatible controller: [AMD/ATI] Cedar [Radeon HD 5450] Linux 3.13.1, xf86-video-ati 7.3.0, mesa 9.5

[  107.875202] switching to power state:
[  107.875203]  ui class: none
[  107.875204]  internal class: uvd 
[  107.875206]  caps: video 
[  107.875208]  uvd    vclk: 54000 dclk: 40000
[  107.875210]          power level 0    sclk: 65000 mclk: 40000 vddc: 1070
vddci: 0
[  107.875212]          power level 1    sclk: 65000 mclk: 40000 vddc: 1070
vddci: 0
[  107.875213]          power level 2    sclk: 65000 mclk: 40000 vddc: 1070
vddci: 0
[  107.875214]  status: r 
[  108.178542] [drm:cypress_dpm_set_power_state] *ERROR*
rv770_restrict_performance_levels_before_switch failed
[  118.396040] radeon 0000:01:00.0: GPU lockup CP stall for more than 10068msec
[  118.396046] radeon 0000:01:00.0: GPU lockup (waiting for 0x0000000000000004
last fence id 0x0000000000000002 on ring 5)
[  118.545687] [drm:rv770_stop_dpm] *ERROR* Could not force DPM to low.
[  118.545698] [drm] Disabling audio 0 support
[  118.698386] radeon 0000:01:00.0: GPU reset succeeded, trying to resume
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#27 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

--- Comment #25 from Chris Humbert <[email protected]> --- Created attachment 93076
--> https://bugs.freedesktop.org/attachment.cgi?id=93076&action=edit
cedar-3.13.1-xorg

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#28 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

John <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#29 lore raw

[Bug 69120] With dpm=1 vdpau is not usable

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69120

John <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel